package com.yunji.aggregate.model.vo.container;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CabinetViewVO {

    @ApiModelProperty("货柜ID")
    private Long containerId;

    @ApiModelProperty("货柜名称")
    private String containerName;

    @ApiModelProperty("货柜在线状态 (0=离线,1=在线)")
    private Integer onlineStatus;

    @ApiModelProperty("货柜类型")
    private String typeCode;

    @ApiModelProperty("电量")
    private Integer battleLevel;

    @ApiModelProperty("电量状态")
    private Integer battleStatus;

    @ApiModelProperty("电量变更时间")
    private Date updateBattleTime;

    @ApiModelProperty("是否休眠 0 正常 1 休眠")
    private Integer sleepStatus;

    @ApiModelProperty("货柜在线时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String onlineTime;

    @ApiModelProperty("货柜离线时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String offlineTime;

    @ApiModelProperty("点位ID")
    private Long locationId;

    @ApiModelProperty("点位名称")
    private String locationName;

    @ApiModelProperty("商品数量")
    private Integer productQuantity;

    @ApiModelProperty("商品总数")
    private Integer ceilingQuantity;
}
